﻿





using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using DrawableObjects.Actors;

namespace LightEffects
{
    public class PointLight
    {

        protected PointLight(Color color, float intensity, Vector3 ambientLightColor, float lightAttenuation, float lightFalloff, Actor actor)
        {
            this.color = new Vector3(color.R, color.G, color.B);
            this.actor = actor;
            this.ambientLightColor = ambientLightColor;
            this.lightAttenuation = lightAttenuation;
            this.lightFalloff = lightFalloff;
        }

        public Vector3 color
        {
            get;
            private set;
        }

        public Actor actor
        {
            get;
            private set;
        }

        protected Vector3 ambientLightColor
        {
            get;
            set;
        }

        protected float lightAttenuation
        {
            get;
            set;
        }

        protected float lightFalloff
        {
            get;
            set;
        }

        public static PointLight getPointLight(Color color, Actor actor)
        {
            return new PointLight(color, 10f, new Vector3(color.R, color.G, color.B), 2f, 0.5f, actor);
        }
    }
}

